package com.p2p.auth.domain.dto.auth;

import com.p2p.auth.common.enums.AuthMenuType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.util.List;

/**
 * Created by Antinomy on 17/7/25.
 */
@Data
public class AuthMenuItemDTO {
    @ApiModelProperty(value = "唯一ID")
    private String uniqueId;

    @ApiModelProperty(value = "唯一ID")
    private String rootUniqueId;

    @ApiModelProperty(value = "名称")
    private String label;

    @ApiModelProperty(value = "路由地址")
    private String router;

    @ApiModelProperty(value = "菜单类型")
    @Enumerated(EnumType.STRING)
    private AuthMenuType menuType;

    @ApiModelProperty(value = "父菜单Id")
    private String  parentId;

    @ApiModelProperty(value = "名称")
    private String icon;

    private List<AuthMenuItemDTO> children;

    private List<String> buttons;

    public AuthMenuItemDTO(){}
}
